//
//  ZHYYTable.h
//  ZHYYView
//
//  Created by yuan zhang on 2021/9/15.
//  Copyright © 2021 yuan zhang. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "TableModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZHYYTable : NSView
@property (nonatomic, strong) NSMutableArray<TableModel *> *tbModel;

-(id)initWithFrame:(NSRect)frameRect ColumnNumber:(NSInteger)columnNumer;

-(void)changeDUT1Data:(NSString*)data atRowIndex:(NSInteger)row;
-(void)changeDUT2Data:(NSString*)data atRowIndex:(NSInteger)row;

-(void)reloadDataTB;
-(void)reloadDataWithRowIndex:(NSIndexSet *)rowIndex columnIndex:(NSIndexSet *)columnIndex;

-(void)testScroll:(NSInteger)row;
-(NSUInteger)tableRowCount;
@end

NS_ASSUME_NONNULL_END
